/*
 * Copyright (C) 2011 by
 * 
 * Hongchen Guo
 * guohongchen@foxmail.com or ghc11@mails.tsinghua.edu.cn
 * Institute of Information System & Engineering
 * School of Software, Tsinghua University
 * 
 * LiqianFan
 * 702562751@qq.com
 * 
 * School of Software, Tsinghua University
 * 
 * A eclipse plug-in for the web of "http://learn.tsinghua.edu.cn".
 * 
 */
package org.thulearn.model;

/**
 * User Bean
 * @author GuoHongchen
 */
public class User {
	private String id;
	private String name;
	private String username;
	private String password;
	
	/**
	 * Default constructor
	 */
	public User() {
	}
	
	/**
	 * User defined constructor
	 * @param id user id
	 * @param name true user name
	 * @param username the user name of the web for logging in
	 * @param password the password of the web for logging in
	 */
	public User(String id, String name, String username, String password) {
		this.id = id;
		this.name = name;
		this.username = username;
		this.password = password;
	}

	public String getId() {
		if(id == null) id = "";
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		if(name == null) name = "";
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUsername() {
		if(username == null) username = "";
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		if(password == null) password = "";
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
